package cn.wolfcode.luowowo.member.service;

import cn.wolfcode.luowowo.common.exception.LogicException;
import cn.wolfcode.luowowo.member.domain.UserInfo;

import java.util.List;

public interface IUserInfoService {

    UserInfo get(Long id);

    //判断手机号是否已注册
    Boolean checkPhone(String phone);

    //发送验证码
    void sendVerifyCode(String phone)throws LogicException;

    //注册
    void userRegist(String nickName, String password, String rpassword, String verifyCode, String phone)throws LogicException;

    //登录
    String userLogin(String username, String password)throws LogicException;


    List<UserInfo> list();
}
